package com.ibm.risk.irmp.base.auth.service;

import com.ibm.risk.irmp.base.auth.entity.SystemPermission;
import com.ibm.risk.irmp.base.auth.vo.UserMenuTreeVo;

import java.util.List;

public interface IMenuManagementService {
    /**
     * 获取菜单列表
     */
    List<UserMenuTreeVo> getMenuList();

    /**
     * 保存菜单
     */
    Boolean saveMenu(SystemPermission entity);

    /**
     * 删除菜单
     */
    Boolean deleteMenu(Long id);

    List<UserMenuTreeVo> buildUserMenu(String username);
}
